package com.itheima.homework;

import java.util.Collections;
import java.util.HashSet;

/*
    请将如下4个字符串数据["aaa"，"bbb"，"ccc"，"ddd"]，依次添加到HashSet集合中，并遍历查看存储结果。反馈该题
    作答
 */
public class Demo1 {
    public static void main(String[] args) {
        HashSet<String> set=new HashSet<>();
        String[] ss={"aaa","bbb","ccc","ddd"};
        Collections.addAll(set,ss);
        for (String s : set) {
            System.out.println(s);
        }
    }
}
